FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER 168
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /wlhy
WORKDIR /wlhy
EXPOSE 8080

#ENV LANG en_US.UTF-8
#RUN apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*

#COPY simsun.ttf /usr/share/fonts/ttf-dejavu/simsun.ttf
#COPY ./src/main/resources/font/simsun.ttf /usr/share/fonts/
#COPY Songti.ttc /usr/share/fonts/

RUN  apk add ttf-dejavu
COPY simsun.ttf /usr/share/fonts/
RUN fc-cache -vf
ADD ./target/jeecg-boot-module-system-2.3.0.jar ./
#CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar jeecg-boot-module-system-2.3.0.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","jeecg-boot-module-system-2.3.0.jar"]


